<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/config/c.tld" prefix="c"%>
<%@ taglib prefix="fn" uri="/WEB-INF/config/fn.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/config/fmt.tld"%>
<%@ taglib uri="/WEB-INF/config/Pagination.tld" prefix="p"%>
<!DOCTYPE HTML>
<html>
<head>
<title>角色管理</title>
<script src="Metro/js/jquery-1.9.1.min.js"></script>
</head>
<body>
	<ul class="breadcrumb">
		<li><a href="index.html">首页</a><i class="icon-angle-right"></i></li>
		<li><a href="#">角色管理</a></li>
	</ul>
	<div class="pull-right box">
		<a href="user/manage/roleinitAdd.html">
			<button class="btn btn-small btn-primary">
				<i class="halflings-icon plus white white star"></i>
				点击添加信息
			</button>
		</a>
	</div>
	<div class="row-fluid ">
		<form action="user/manage/rolelist.html" id="myform" class="form-horizontal" method="post">
		<div class="box span12">
			<div class="box-header" data-original-title>
				<h2>
					<i class="halflings-icon white edit"></i><span class="break"></span>角色信息
				</h2>
				<div class="box-icon">
					<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a> 
				</div>
			</div>
			<div class="box-content">

				<table id="datatable" class="table table-striped table-bordered table-hover dataTable">
					<thead>
						<tr>
							<th width=40>序号</th>
							<th>角色名称</th>
							<th>角色编码</th>
							<th width=160>操作</th>
						</tr>
					</thead>
					<tbody role="alert" aria-live="polite" aria-relevant="all">
						<c:forEach items="${paging }" var="al" varStatus="index">
							<tr>
								<td class="sorting_1">${index.index+1 }</td>
								<td class="sorting_1">${al.name}</td>
								<td class="sorting_1">${al.numbers}</td>
								<td class="center">
									<a class="btn btn-info" href="user/manage/roleupdate/${al.id}.html" title="修改 ">
										<i class="halflings-icon white edit"></i>
									</a>
									<a class="btn btn-danger" href="user/manage/roledelete/${al.id }.html" title="删除"
										onclick="return confirm('删除以后数据将不可恢复\n确定删除吗？')">
										<i class="halflings-icon white trash"></i> 
									</a>
								</td>
							</tr>
							<c:if test="${paging.size()==0}">
								<tr>
									<td colspan="5" class="grade even center align-items-center" height="200">
										没有"角色"数据信息
									</td>
								</tr>
							</c:if>
						</c:forEach>
					</tbody>
				</table>

			</div>
		</div>
		</form>
	</div>

</body>
</html>
